package smlab.view.ui.tree.demo
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import smlab.view.ui.tree.Tree_SM;
	
	[SWF(width=800,height=600,backgroundColor=0xFF0000)]
	/**
	 * 测试主入口文件
	 * @author simon
	 * 
	 */
	public class TreeDemo extends Sprite
	{
		[Embed("data.xml", mimeType="application/octet-stream")]
		private var xmlClass:Class;
		private var xmlProvider:XML;
		
		public function TreeDemo()
		{
			stage.align=StageAlign.TOP_LEFT;
			stage.scaleMode=StageScaleMode.NO_SCALE;
			
			var t:Tree_SM=new Tree_SM(120,300,TreeNodeDemo,[8,5,3,1],[0,20,40,60]);
			xmlProvider=new XML(new xmlClass);
			t.dataProvider=xmlProvider;
			
			t.x=100;
			t.y=100;
			addChild(t);
		}
	}
}